package zadanie.Ch7homework.src;

public class MainClass {

	public static void main(String[] args) throws java.text.ParseException {

		/*
		 * Homework 1 - Reading input data from commad line Input data: Bartek
		 * Kita 29/05/1982 Honda 01/01/2000 Janek Kowalski 12/12/1968 Toyota
		 * 02/02/2005 Tomasz Tomkowski 17/02/1983 Subaru 10/10/2010
		 */
		// Person[] persons = Person.parseArgsToPersons(args);
		// Person.greetPersons(persons);

		/*
		 * Homework 2 - Reading input data from txt file Input data: Bartek Kita
		 * 06/04/1982 Passat 01/01/2002 Tomek Kowalski 01/01/1980 Subaru
		 * 01/01/2000 Michal Michalkowski 02/02/1985 Honda 03/03/2010 Zbigniew
		 * Zbszkowski 04/04/1980 Fiat 09/09/2010
		 */

		String pathFile = "C:/bartek.txt";
		String[] params = Person.parseFileToString(pathFile);
		Person[] persons = Person.parseArgsToPersons(params);
		Person.greetPersons(persons);

	}
}
